package com.dongzili.common.config.annotation;

import com.dongzili.common.mybatisjoin.MPJMapperConfig;
import com.dongzili.common.mybatisplus.MybatisPlusMapperConfig;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Import({MybatisPlusMapperConfig.class, MPJMapperConfig.class}) // 关键：导入注册器
public @interface EnableAutoMapper {
    /**
     * 扫描的基础包路径
     */
    String[] basePackages() default {};
}